<br />
{if $s_id eq ""}
<form name="topic" enctype="multipart/form-data" method="POST" action="attachments.php?do=upload&amp;temp_={$temp}">
{else}
{if $reply eq 1}
<form name="topic" enctype="multipart/form-data" method="POST" action="attachments.php?do=upload&amp;temp_={$temp}&amp;subject_id={$s_id}&amp;reply=1">
{else}
<form name="topic" enctype="multipart/form-data" method="POST" action="attachments.php?do=upload&amp;temp_={$temp}&amp;subject_id={$s_id}">
{/if}
{/if}

  <div align="center">
    <table border="1" class="border" cellspacing="1" width="70%">
      <tr>
        <td class="thead" width="100%">إدارة المرفقات</td>
      </tr>
      <tr>
        <td class="row3" width="100%><p class="small"><input type="file" name="F1" size="20" /></p></td>
      </tr>
		<tr>
		<td class="row3dark"><input type="submit" value="حمّل" name="B1"></td>
		</tr>
    </table>
  </div>
</form>

<div align="center">
<table border="1" class="border" cellspacing="1" width="70%">
{section name=idx loop=$getattach_num}     
 <tr>
 
         <td class="row3" width="10%" align="left"><img alt="{$getattach_row[idx].filename|escape:"html"}" src="{$getattach_row[idx].fileext}" /></td>
         
        <td class="row3" width="50%" align="left"><a target="_blank" href="attach.php?download=1&amp;id={$getattach_row[idx].id}">{$getattach_row[idx].filename}</a></td>
        
        <td class="row3" width="40%">

        {if $s_id eq ""}
        <a href="attachments.php?do=del&amp;id={$getattach_row[idx].id}&temp_={$temp}" >حذف</a>
{else}
{if $reply eq 1}
        <a href="attachments.php?do=del&amp;id={$getattach_row[idx].id}&amp;temp_={$temp}&amp;subject_id={$s_id}&amp;reply=1" >حذف</a>
{else}
 <a href="attachments.php?do=del&amp;id={$getattach_row[idx].id}&amp;temp_={$temp}&amp;subject_id={$s_id}" >حذف</a>

{/if}
{/if}
        </td>
      </tr>
      {/section}
      </table>
		</div>
		<div align="center"><span class="row3">
<input type="submit" value="اغلق هذه النافذة" name="B1" align="center" onclick="javascript:self.close()"/>
</span></div>